<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
    <title>#{requests.selectedRequestName}</title>
    <style> 
		.ui-widget,        
		.ui-widget .ui-widget { font-size: 90% !important;} 
	</style>
</h:head>
<h:body>
	<h:form>
	
		
		<h:panelGrid columns="3">
			<h:outputLabel value="Название :" for="requestName" />
			<p:inputText value="#{requestsBean.selectedRequestName}" id="requestName"/>
			<br/>
			
			 
			<h:outputLabel value="Заказчик :" for="customer" />
			<p:selectOneMenu id="customer" value="#{requestsBean.selectedRequestCustomer}" label="selectedRequestCustomer" style="width:100%" required="false">
				<f:converter converterId="userConverter" />
				<f:selectItems value="#{usersBean.users}" var="users" />
                
            </p:selectOneMenu>
			<br/>
			
			<h:outputLabel value="Поддержка :" for="support" />
			<p:selectOneMenu id="support" value="#{requestsBean.selectedRequestSupport}" label="selectedRequestSupport" style="width:100%" required="false">
				<f:converter converterId="userConverter" />
				<f:selectItems value="#{usersBean.users}" var="users" />
                
            </p:selectOneMenu>
			<br/>
			
			<h:outputLabel value="Дистрибюьторы :" for="selectedDistr" />
			<p:selectOneMenu id="distrs" value="#{requestsBean.selectedRequestDistributors}" label="selectedDistr" style="width:100%" required="false">
				<f:converter converterId="distrConverter" />
				<f:selectItems value="#{distrsBean.distrs}" var="distrs" />
			</p:selectOneMenu>
			<br/>
			
		</h:panelGrid>
	
		<p:commandButton value="Сохранить и вернуться" action="#{requestsBean.saveAndExit}"/>
		
		<p:commandButton value="Сохранить" action="#{requestsBean.save}"/>
		
		<p:commandButton value="Вернуться" action="#{requestsBean.exit}"/>
		
	</h:form>
	

</h:body>
</html>